﻿using System;
using BrettM.Web.Hosting;
using BrettM.Web.Restful;
using Microsoft.Practices.Unity;

namespace BrettM.BootStrappers
{
    public class RestfulErrorHandlerBootStrapper 
        : IBootStrapper
    {
        public void OnStart(IUnityContainer container, PropertyBag bag)
        {
            ErrorHandler.ErrorHandlers.Add(new RestfulErrorHandler());
        }

        public void OnStop(IUnityContainer container, PropertyBag bag)
        {
        }

        public void Dispose()
        {
        }
    }
}
